import fetch from '@/utils/request';

// 创建订单的接口
export const PostcreateOrder = (data:any) => {
  return fetch.post('/api/order/createOrder', data)
}

// 订单详情的接口
export const orderInfo = ({ order_id }: {order_id:string}) => {
  return fetch.get(`/api/order/getOrderInfo?order_id=${order_id}`)
}

// 下单支付接口
export const payOrder = ({ order_id }: { order_id:any  }) => {
  return fetch.get(`/api/order/payOrder?order_i=${order_id}`)
}

// admin.njdczy.com/api/order/getOrderList

export const orderList = () => {
  return fetch.get(`/api/order/getOrderList`)
}
